﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using Senparc.Weixin.MP.MessageHandlers;
using Senparc.Weixin.MP.Entities;
using Senparc.Weixin.MP;
using Senparc.Weixin.MP.MvcExtension;
using Senparc.Weixin.MP.Entities.Request;

namespace Model.Weixin
{
    public class FKMessageHandler : MessageHandler<FKMessageContext>
    {
        public FKMessageHandler(Stream inputStream,PostModel model,int maxRecordCount)
            : base(inputStream,model,maxRecordCount)
        {

        }
        public override IResponseMessageBase DefaultResponseMessage(IRequestMessageBase requestMessage)
        {
            var responseMessage = this.CreateResponseMessage<ResponseMessageText>();
            responseMessage.Content = "皮球暂时还不懂您的心，会努力学习的！";
            return responseMessage;
        }
        public override IResponseMessageBase OnImageRequest(RequestMessageImage requestMessage)
        {
            return base.OnImageRequest(requestMessage);
        }

        public override IResponseMessageBase OnTextRequest(RequestMessageText requestMessage)
        {
            var responseMessage = this.CreateResponseMessage<ResponseMessageText>();
            return responseMessage;
        }

        public override IResponseMessageBase OnVideoRequest(RequestMessageVideo requestMessage)
        {
            return base.OnVideoRequest(requestMessage);
        }

        public override IResponseMessageBase OnVoiceRequest(RequestMessageVoice requestMessage)
        {
            return base.OnVoiceRequest(requestMessage);
        }
    }
}